﻿using AutoMapper;
using HamcoWcs.Contract.ContractCommon;
using HamcoWcs.DAL;
using HamcoWcs.Entitys.MesMsgQueues;
using HamcoWcs.Models.Common.Enums;
using System;

namespace HamcoWcs.Service.Mes.Parsers.Mes
{
    /// <summary>
    /// 
    /// </summary>
    public class MesMsgParser_MachineFrequencyRequest : MesMsgParserBase
    {
        public override void HandleEvent(MesMsgQueue message)
        {
            message.Status = (int)EnumMesMsgStatus.WcsExcuted;
            _wcsDbContext.SaveChanges();
        }



        private readonly IMonitorBaseService _monitor;
        public MesMsgParser_MachineFrequencyRequest(IMonitorBaseService monitor, ILoggerService loggerService, WcsDbContext wcsDbContext, IMapper mapper) : base(loggerService, wcsDbContext, mapper)
        {
            _monitor = monitor;
        }

        public override string EventName => "MachineFrequencyRequest";
    }
}
